package com.sundaying.gooway.dao;

import java.util.List;

import com.sundaying.gooway.entity.TopItem;
import com.sundaying.gooway.entity.UrlClass;
import com.sundaying.gooway.entity.UrlItem;

public interface TopItemDao {
	public int save(TopItem obj);

	public int update(TopItem obj);

	public int delete(TopItem obj);

	public TopItem load(long id);

	public List<TopItem> list();

	public List<TopItem> list(String hql, List<Object> param);

	public List<TopItem> list(String hsql, List<Object> param, int page,
			int rows);

	public long count(String hql, List<Object> param);
	
	public List<UrlClass> getUrlClassList(String hql, List<Object> param, int rows);
	
	public List<UrlItem> getUrlItemList(String hql, List<Object> param, int rows);
}
